package ${config.package_entity};


<#assign dataTypesList = StringUtil.packageDistinct(columns) />
<#list dataTypesList as dataTypes>
import ${dataTypes};
</#list>

import io.swagger.annotations.ApiModelProperty;
/**
 * <#if table.annotation??>${table.annotation}</#if>实体
 * @author ${config.author}
 * @date ${.now?string("yyyy-MM-dd HH:mm:ss")}
 */
public class ${table.class_name}${config.suffix_entity} {
	<#list columns as col>
    /**
     * <#if col.comment??>${col.comment}</#if>
     */
	@ApiModelProperty("<#if col.comment??>${col.comment}</#if>")
    private ${StringUtil.getClazz(col.field_type)} ${col.field_name};
    
    </#list>
	
	<#list columns as col>
    public void set${StringUtil.firstFiledUpper(col.field_name)}(${StringUtil.getClazz(col.field_type)} ${col.field_name}){
    	this.${col.field_name} = ${col.field_name};
    }
    
    public ${StringUtil.getClazz(col.field_type)} get${StringUtil.firstFiledUpper(col.field_name)}(){
    	return this.${col.field_name};
    }
	</#list>
}